package com.lwlean.test.utils.exceltest.test;

import com.lwlean.test.utils.exceltest.Exception.ExcelException;
import com.lwlean.test.utils.exceltest.testDomian.ExcelTest;

import java.io.FileInputStream;
import java.io.InputStream;

/**
 * Created by lean on 2017/6/25.
 */
public class Main {

    public static void main(String[] args) throws Exception{

        String path = "C:\\Users\\lean\\Desktop\\exceltest.xlsx";

        InputStream is = new FileInputStream(path);

        TestAnnotion testAnnotion = new TestAnnotion(is, ExcelTest.class,0);
        testAnnotion.addCallbackInteface(new TestAnnotion.CallbackInteface() {
            @Override
            public String checkValue(String value) throws ExcelException {

                return null;
            }

            @Override
            public int getColumnNum() {
                return 0;
            }
        });

    }

}
